package com.ruoyi.DataManage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资源管理对象 resource
 * 
 * @author CehnFneg
 * @date 2024-04-23
 */
public class Resource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资源表的id */
    private Long id;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String name;

    /** 考试科目id */
    @Excel(name = "考试科目id")
    private Long courseId;

    /** 考试科目名称 */
    @Excel(name = "考试科目名称")
    private String courseName;

    /** 资源内容 */
    @Excel(name = "资源内容")
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    /** 资源描述 */
    @Excel(name = "资源描述")
    private String description;

    /** 分类，0为视频，1为淘宝链接 */
    @Excel(name = "分类，0为视频，1为淘宝链接")
    private Long classification;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setClassification(Long classification) 
    {
        this.classification = classification;
    }

    public Long getClassification() 
    {
        return classification;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("content", getContent())
            .append("description", getDescription())
            .append("classification", getClassification())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
